set DEV=%1
set CLIENT_IP=%2
set GATEWAY_IP=%3
set MAC=%~4

route print | findstr -i /C:"%MAC%" > if_num.tmp
set /p IF_NUM=<if_num.tmp
del if_num.tmp
for /f "tokens=1 delims=." %%i in ("%IF_NUM%") do set IF_NUM=%%i


route ADD 8.8.8.8 MASK 255.255.255.255 %GATEWAY_IP% IF %IF_NUM%
route ADD 8.8.4.4 MASK 255.255.255.255 %GATEWAY_IP% IF %IF_NUM%
route ADD 64.18.0.0 MASK 255.255.240.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 64.233.160.0 MASK 255.255.224.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 66.102.0.0 MASK 255.255.240.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 66.249.80.0 MASK 255.255.240.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 69.171.224.0 MASK 255.255.224.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 72.14.192.0 MASK 255.255.192.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 74.125.0.0 MASK 255.255.0.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 173.194.0.0 MASK 255.255.0.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 173.226.0.0 MASK 255.254.0.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 173.252.64.0 MASK 255.255.192.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 199.59.148.0 MASK 255.255.252.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 207.126.144.0 MASK 255.255.240.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 208.80.152.0 MASK 255.255.252.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 208.117.224.0 MASK 255.255.224.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 209.85.128.0 MASK 255.255.128.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 216.239.32.0 MASK 255.255.224.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 67.212.229.164 MASK 255.255.255.255 %GATEWAY_IP% IF %IF_NUM%
route ADD 68.232.45.253 MASK 255.255.255.255 %GATEWAY_IP% IF %IF_NUM%

route ADD 173.252.64.0 MASK 255.255.192.0 %GATEWAY_IP% IF %IF_NUM%
route ADD 31.13.64.0 MASK 255.255.192.0 %GATEWAY_IP% IF %IF_NUM%
